package videoCourse.Structure;

import videoCourse.Structure.MyStack;

public class MystackTest {

    public static void main(String[] args) {
        MyStack ms = new MyStack();
        ms.put(7);
        ms.put(8);
        ms.put(9);
        System.out.println(ms.peek());
        System.out.println(ms.pop());
        System.out.println(ms.pop());
        System.out.println(ms.pop());
        System.out.println(ms.isEmpty());
        ms.put(6);
        System.out.println(ms.isEmpty());
    }

}
